package jm.data.structure.stack;

/**
 * @Description 栈测试
 * @date 2022/4/7 14:25
 */
public class MainStack {
    public static void main(String[] args) {
        Stack<Integer> stack = new Stack<>();
        stack.push(44);
        stack.push(33);
        stack.push(22);
        stack.push(11);
        stack.push(11);
        stack.push(11);
        stack.push(11);
        stack.push(11);
        stack.push(11);
        stack.push(11);
        stack.push(11);




        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());


    }
}
